<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- jQuery  -->
    <script src="lib/jquery/jquery.min.js"></script>
    <!-- bootstrap -->
    <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css">
    <!-- 表单验证 -->
    <link rel="stylesheet" href="lib/bootstrap-validator/css/bootstrapValidator.min.css">
    <!-- 进度条 -->
    <link rel="stylesheet" href="lib/nprogress/nprogress.css">

    <!-- 自己的css文件 -->
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/category.css">


    <!-- 模板引擎 -->
    <script src="lib/artTemplate/template-web.js"></script>
    <!-- bootstrap -->
    <script src="lib/bootstrap/js/bootstrap.js"></script>
    <!-- 分页器 -->
    <script src="lib/bootstrap-paginator/bootstrap-paginator.min.js"></script>
    <!-- 表单验证 -->
    <script src="lib/bootstrap-validator/js/bootstrapValidator.js"></script>
    <!-- 图标插件 -->
    <script src="lib/echarts/echarts.min.js"></script>
    <!-- 上传文件 -->
    <script src="lib/jquery-fileupload/jquery.fileupload.js"></script>
    <script src="lib/jquery-fileupload/jquery.iframe-transport.js"></script>
    <script src="lib/jquery-fileupload/jquery.ui.widget.js"></script>
    <!-- 进度条 -->
    <script src="lib/nprogress/nprogress.js"></script>

</head>

<body>
    <div class="main">
        <div class="left">
            <h3 class="title">
                ITCAST
            </h3>
            <div class="icon">
                <img src="./images/default.png" alt="">
                <h4>超级管理员</h4>
            </div>
            <div class="asideMenu">
                <ul>
                    <li>
                        <a href="user.html">
                            <span class="glyphicon glyphicon-user"></span> 用户管理
                        </a>
                    </li>
                    <li>
                        <a class="menuSlide" href="javascript:">
                            <span class="glyphicon glyphicon-list"></span> 分类管理
                        </a>
                        <div class="classif">
                            <a class="active" href="category.html">一级分类</a>
                            <a href="./subcategory.html">二级分类</a>
                        </div>
                    </li>
                    <li>
                        <a href="./product.html">
                            <span class="glyphicon glyphicon-tags"></span> 商品管理
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="right">
            <div class="top">
                <a class="pull-left toLeft" href="javascript:">
                    <span class="glyphicon glyphicon-align-justify"></span>
                </a>
                <a class="pull-right myModalBox" href="javascript:">
                    <span class="glyphicon glyphicon-log-out"></span>
                </a>
            </div>
            <div class="content">
                <ol class="breadcrumb">
                    <li>
                        <a href="#">管理系统</a>
                    </li>
                    <li>
                        <a href="#">分类管理</a>
                    </li>
                    <li>
                        <a href="#">一级管理</a>
                    </li>
                </ol>
                <button id="categoryMedol" class="btn btn-default">添加分类</button>
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>分类名称</th>
                        </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
                <div class="text-right" style="margin-right:20px">
                    <ul id="paginator"></ul>
                </div>

            </div>
        </div>
    </div>

    <script id="category-List" type="text/html">
        {{each rows}}
        <tr>
            <td>{{(page-1)*size+$index+1}}</td>
            <td>{{$value.categoryName}}</td>
        </tr>
        {{/each}}
    </script>

    <!-- 登出模态框 -->

    <div id="myModal" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">温馨提示</h4>
                </div>
                <div class="modal-body">
                    <p>
                        <span class="glyphicon glyphicon-info-sign"></span>您确定要退出后台管理系统吗？</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" id="logOut">确定</button>
                </div>
            </div>
        </div>
    </div>


    <!-- 添加分类模态框 -->

    <div id="myCategModal" class="modal fade" tabindex="-1" role="dialog">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">添加一级分类</h4>
                </div>
                <div class="modal-body">

                    <form class="form-horizontal">
                        <div class="form-group">
                            <input type="text" name="categoryName" class="form-control" placeholder="请输入一级分类" name="categoryName">
                        </div>
                    </form>

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="submit" class="btn btn-primary">确定</button>
                </div>
            </div>
        </div>
    </div>
</body>
<!-- 自己写的js -->
<script src="./js/common.js"></script>
<script src="./js/category.js"></script>

</html>